package class5;

import java.io.File;
import java.io.IOException;

public class demo1 {
    public static void main(String[] args) throws IOException {
        File file=new File("D:/aa/bb/test.txt");
        System.out.println(file);
        System.out.println(file.isDirectory());
        System.out.println(file.isFile());
        System.out.println(file.getParent());
        System.out.println(file.exists());

        File f=new File(file.getParent());
        f.mkdirs();
file.createNewFile();
    }
}
